﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class gswh : System.Web.UI.Page
{
    News n = new News();
    protected void Page_Load(object sender, EventArgs e)
    {
        BindHDPIC();
        this.Label1.Text = n.GetContentByCid(298);
        this.Label2.Text = n.GetContentByCid(300);
        this.Label3.Text = n.GetContentByCid(299);
    }

    public void BindHDPIC()
    {
        DataTable dt = new DataTable();
        SqlHelper.FillDataTable("select * from news where classid=301 order by id desc",dt);
        this.DataList1.DataSource = dt;
        this.DataList1.DataBind();
    }
}
